package com.csy.property.community.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.csy.commons.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AjUnit extends BaseEntity {

    private static final long serialVersionUID = 1925040260706805085L;

    /*单元id
    * */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long unitId;

    /*小区id
     * */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId;

    /*楼栋id
     * */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long buildingId;

    @TableField(exist = false)
    private String communityName;
    @TableField(exist = false)
    private String buildingName;

    /*单元名称
     * */
    private String unitName;

    /*单元编码
     * */
    private String unitCode;

    /*单元层数
     * */
    private Long unitLevel;

    /*建筑面积
     * */
    private Double unitAcreage;

    /*是否有电梯
     * */
    private String unitHaveElevator;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityAreaId;

    @TableField(exist = false)
    private String communityArea;
}
